package com.feng.springbootmabatismapperdemo.web;

import com.feng.springbootmabatismapperdemo.bean.User;
import com.feng.springbootmabatismapperdemo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @description:
 * @author: lrf
 * @create: 2019-09-11
 **/
@RestController
public class UserController {

    @Autowired
    private UserService userService;

    @RequestMapping("/findAll")
    public List<User> findAll(){
        return userService.findAll();
    }
}
